import request from '@/router/axios';

//库存列表
export const getList = (page, size, params) => {
    return request({
        url: '/api/stocks/list',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}

//库存列表
export const getListForOffLineStore = (page, size, params) => {
    return request({
        url: '/api/stocks/offLinsStoreList',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}

//库存列表
export const getListForSubCompany = (page, size, params) => {
    return request({
        url: '/api/stocks/subCompanyList',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}

//历史纪录
export const getLogList = (page, size, params) => {
    return request({
        url: '/api/stocksLog/list',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}

//库存列表，线下店页面使用
export const getStocksList = (page, size, params) => {
    return request({
        url: '/api/stocks/list',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}